Styling contour lines

Follow this tutorial https://www.youtube.com/watch?v=-xzoVF7Z7u0 Here is a Qgis style layer as example :